const {
	error
} = require("console")

const send = function(RetObject, RetMessage = '', RetCode = 0) {
	if (typeof RetMessage !== 'string') {
		return error('RetMessage 必须为 string!')
	}
	if (typeof RetCode !== 'number') {
		return error('RetCode 必须为 number!')
	}
	return {
		RetObject,
		RetMessage,
		RetCode,
	}
}

module.exports = send